<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>04-w3导航条</title>
    <link rel="stylesheet" href="../css/reset.css">
    <style>
        .nav {
            width: 1210px;
            height: 48px;
            background-color: #bfa;

            margin: 100px auto;
        }

        .nav li {
            /*设置li向左浮动，使菜单横向排列*/
            float: left;
            /*height: 48px;*/
            line-height: 48px;
        }

        .nav a {
            /*将a转换为块元素*/
            display: block;
            text-decoration: none;
            color: #777;
            font-size: 18px;
            padding: 0 44px;
        }

        /*设置鼠标移入的效果*/
        .nav a:hover {
            background-color: #eee;
        }
    </style>
</head>

<body>
    <!--创建导航条的结构-->
    <ul class="nav">
        <li>
            <a href="#">HTML/CSS</a>
        </li>
        <li>
            <a href="#">Browser Side</a>
        </li>
        <li>
            <a href="#">Server Side</a>
        </li>
        <li>
            <a href="#">Programming</a>
        </li>
        <li>
            <a href="#">XML</a>
        </li>
        <li>
            <a href="#">Web Building</a>
        </li>
        <li>
            <a href="#">Reference</a>
        </li>
    </ul>

</body>

</html>